<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8">
        <title>Tested Projects</title>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" href="/css/results.css" type="text/css" media="screen" title="no title" charset="utf-8">
    </head>
    <body>
        <ul class="breadcrumbs">
            <li>> <a href="/">projects</a> > </li>
            <li><a href="/results/{{project.name}}">{{project.name}}</a></li>
            <br style="clear:both;" />
        </ul>
        <h2>{{rev.result_html}}
		Revision <span class="revision">{{rev.name}}</span></h3>
		</h2>
        <dl class="meta">
        	<dt>author</dt>
        	<dd>{{rev.author_html}}</dd>
        	<dt>when</dt>
        	<dd>{{rev.formatted_time}}</dd>
        	{% if rev.compiled %}
        	<dt>bytes uncompressed</dt>
        	<dd>{{rev.bytes}}</dd>
        	<dt>bytes (gzipped)</dt>
        	<dd>{{rev.bytes_gzip}}</dd>
        	<dt>bytes compressed (gzipped)</dt>
        	<dd>{{rev.bytes_compressed}}</dd>
        	{% endif %}
        </dl>
        <div class="log">
        	<h4>log message</h4>
        	<p class="message">{{rev.message}}</p>
        	<ul class="changes">
        		{% for added in rev.added %}
        			<li class="added"><span class="tag">A</span> {{added}}</li>
        		{% endfor %}
        		{% for modified in rev.modified %}
        			<li class="modified"><span class="tag">M</span> {{modified}}</li>
        		{% endfor %}
        		{% for removed in rev.removed %}
        			<li class="removed"><span class="tag">R</span> {{removed}}</li>
        		{% endfor %}
        	</ul>
        	<a class="codelink" href="{{rev.url_pretty}}">read more about this revision</a></h2>
        </div>
        <br style="clear:both;">
        {% if rev.warnings %}
        	<h3>Compiler Warnings</h3>
        	<ul class="warnings">
        		{% for warning in rev.warnings %}
        			<li>{{warning}}</li>
        		{% endfor %}
        	</ul>
        {% endif %}
        {% if rev.errors %}
        	<h3>Compiler Errors</h3>
        	<ul class="errors">
        		{% for error in rev.errors %}
        			<li>{{error}}</li>
        		{% endfor %}
        	</ul>
        {% endif %}
        {% if rev.passing or rev.runner_error %}
            <div>
            	<h3>Test Results</h3>
            	<ul class="runs">
            	    <a href="{{rev.test_url}}">run this revision's tests in my browser</a>	
            	{% for run in rev.test_results %}
            		<li class="browser {% if not run.supported %}unsupported {% endif %}{% if run.failures %}failures{% else %}passed{% endif %}">
            			{% if not run.supported %}
            			    unsupported
            			{% endif %}
            			{{run.browsername}} : {% if run.failures %}
            				failed
            				<ul class="failures">
            					{% for failure in run.failures %}
            						<li>{{failure}}</li>
            					{% endfor %}
            				</ul>
            			{% else %}
            				all passed
            			{% endif %}
            		</li>
            	{% endfor %}	
            	</ul>
            </div>
        {% endif %}
    </body>
</html>